//
//  ST_PairsCenterSectionHeaderView.swift
//  btvideo
//
//  Created by mac on 2020/1/10.
//  Copyright © 2020 JarvanZhang. All rights reserved.
//

import UIKit
import SwifterSwift

class ST_PairsCenterSectionHeaderView: UITableViewHeaderFooterView {
    
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier: reuseIdentifier)
        self.contentView.backgroundColor = Color.white
        self.contentView.addSubview(content_label)
        content_label.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(25)
            make.left.equalToSuperview().offset(15)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    fileprivate lazy var content_label:UILabel = {
            let control = UILabel.init()
    //        control.backgroundColor = Color.random
            control.text = ""
            control.textColor = Color.init(hexString: "#333333")
            
    //        control.textAlignment = .center
            control.font = UIFont.systemFont(ofSize: 16, weight: UIFont.Weight.semibold)
            return control
        }()
    
    
    var model = ST_PairsUserCenterSectionModel(){
        didSet{
            content_label.text = model.text
        }
    }
    
}
